// +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
// +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +----------------------------------------------------------------------

import request from '@/utils/request'

/**
 * 删除等级
 */
export function delDengji(id) {
  return request({
    url: '/admin/system/user/level/delete/' + id,
    method: 'POST',
  })
}

/**
 * 获取等级
 */
export function getDengjiList(params) {
  return request({
    url: '/admin/system/user/level/list',
    method: 'get',
    params
  })
}

/**
 * 新增等级
 */
export function addDengji(data) {
  return request({
    url: '/admin/system/user/level/save',
    method: 'post',
    data,
  })
}

/**
 * 更新等级
 */
export function updateDengji(data,id) {
  return request({
    url: '/admin/ystem/user/level/update/' + id,
    method: 'post',
    data,
  })
}

export function updateDengjiStatus(data) {
  return request({
    url: '/admin/ystem/user/level/use',
    method: 'post',
    data,
  })
}

